<?php
include_once('config/db_conn.php');
include_once('db_config/db_websetting.php');
$websetting =new websetting();


if($_REQUEST['submit'])
{
	$table='ninerr_websettings';
	$websetting_id = '1';
			
	if($_FILES['amend_image']['name']!='')
	{
		$change_logo = date("ymdhi").$_FILES['amend_image']['name'];
		$fileName=$_FILES['amend_image']['name'];
		$fileSize='2000';
		$fileTempName=$_FILES['amend_image']['tmp_name'];
		$folderPath='images/';
		$oldfileName='';
		
		fileUpload($fileName,$oldfileName,$fileSize,$fileTempName,$folderPath,$maxSize=5242880);
	
		$dataArray=array("change_logo"=>$change_logo);
		$fldArray=array("websetting_id"=>$websetting_id);
		$websetting->dataUpdate($table,$dataArray,$fldArray);
	}
	else
	{
		$err_msg= "commission amount cannot be empty.";
	}
		
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Admin</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
</head>
<body>
<div id="container">
  <?php
		include_once('header.php');
		?>
  <div id="top-panel">
    <div id="panel">
      <ul>
        <li><a href="change_pass.php" class="useradd">Change Password </a> </li>
		<li><a href="change_frontendtitle.php" class="useradd">Change title </a></li>
		<li><a href="change_commission_amt.php" class="useradd">Commission Percentage Setting </a></li>
		<li><a href="multiple_gigs.php" class="useradd">multiple gigs </a></li> 
      </ul>
    </div>
  </div>
   
  <div id="wrapper">
    <div id="content">
      <div id="box">
       
        <div id="box">
                	<h3 id="adduser">&nbsp;</h3>
                    <form id="form" action="" method="post" enctype="multipart/form-data">
                      <fieldset id="personal">
                        <legend>Change Logo Setting</legend>
						
                        <label for="lastname"> Change Logo : </label> 
                        <input name="amend_image" id="amend_image" type="file" tabindex="1" />
                        <br />
						<label for="lastname">  </label> 
                        Only JPG/JPEG Format
                      </fieldset>
                                            
                      <div align="center">
                        <input name="submit" type="submit" id="button1" value="Submit" />
                        <input id="button2" type="reset" />
                      </div>
                    </form>

        </div>
      </div>
      <br />
    </div>
    <?php
			include_once('right.php');
			?>
  </div>
  <?php
		include_once('footer.php');
		?>
</div>
</body>
</html>
